<template>
	<view>
		<u-navbar title="投诉建议" :background="{background: 'transparent'}" back-icon-color="#000" title-color="#000"
			:border-bottom="false">
		</u-navbar>
		<view class="form">
			<view class="form-item">
				<view class="form-label">问题描述</view>
				<view class="form-value">
					<textarea v-model="content" placeholder="问题描述" class="text-area"></textarea>
				</view>
			</view>
			<view class="form-item">
				<view class="form-label">添加图片</view>
				<view class="form-value">
					<view class="file-up">
						<image src="../../../static/imgs/xiangji.png" class="icon"></image>
						上传图片
					</view>
				</view>
			</view>
			<view class="form-item">
				<view class="form-label">联系方式</view>
				<view class="form-value">
					<input v-model="mobile" placeholder="联系方式" class="input"></input>
				</view>
			</view>
		</view>
		<view class="btn">
			<text>立即提交</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: '',
				mobile: ''
			};
		}
	}
</script>
<style>
	page {
		background-color: #FFFFFF;
	}
</style>
<style lang="scss">
	.form {


		.form-item {
			padding: 40rpx;

			.form-label {
				font-size: 40rpx;
				font-weight: 500;
				color: #333333;
			}

			.form-value {
				width: 100%;
				margin-top: 40rpx;

				.text-area {
					width: calc(100% - 40rpx);
					background-color: #F2F2F7;
					padding: 20rpx;
				}

				.input {
					width: 100%;
					padding: 20rpx;
					background: transparent;
					border-bottom: 2rpx solid #F2F2F7;
				}

				.file-up {
					background-color: #F2F2F7;
					border-radius: 10rpx;
					width: 150rpx;
					height: 150rpx;
					font-size: 20rpx;
					font-weight: 400;
					color: #999999;
					display: flex;
					align-items: center;
					justify-content: center;
					flex-direction: column;

					.icon {
						width: 60rpx;
						height: 60rpx;
					}
				}
			}
		}
	}

	.btn {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		width: 90%;
		height: 100rpx;
		background: linear-gradient(180deg, #3FA3F9 0%, #2D7BF7 100%);
		color: #FFFFFF;
		border-radius: 20rpx;
		font-size: 32rpx;
		position: absolute;
		bottom: 20rpx;
		left: 5%;

		.small {
			font-size: 22rpx;
			margin-top: 10rpx;
		}
	}
</style>
